package com.espeaker.sdk.api;

import android.os.Handler;

import com.espeaker.sdk.Constants;
import com.espeaker.sdk.ESpeakerParameters;

public class VersionApi extends MiaoApi {
	public void getCurVersion(final Handler handler)
	{
		new Thread() {
			@Override
			public void run() {
				try {
					ESpeakerParameters params = new ESpeakerParameters();
					params.add("user_id", "user_id",true);
					String mRes = request(MiaoApi.GetBaseURL(), GET_VERSION, params,1);
					if (handler != null) {
						handler.obtainMessage(Constants.GET_VERSION, mRes).sendToTarget();
					}
				} catch (Exception er) {
				}
			}
		}.start();
	}
}
